<?php
$root = realpath(dirname(__FILE__));

define ("ROOT", $root);

define ('CLASS_A', "$root/classes/HTML/A.php");
define ('CLASS_BR', "$root/classes/HTML/Br.php");
define ('CLASS_BUTTON', "$root/classes/HTML/Button.php");
define ('CLASS_CLASSE', "$root/classes/Tables/Classe.php");
define ('CLASS_DATABASE', "$root//classes//Database.php");
define ('CLASS_DISTRETTO', "$root/classes/Tables/Distretto.php");
define ('CLASS_DIV', "$root//classes//HTML//Div.php");
define ('CLASS_DOCENTE', "$root/classes/Tables/Docente.php");
define ('CLASS_DOCUMENT', "$root/classes/HTML/Document.php");
define ('CLASS_EFFETTUA', "$root/classes/Tables/Effettua.php");
define ('CLASS_EMPTY_TAG', "$root/classes/HTML/EmptyTag.php");
define ('CLASS_FORM', "$root/classes/HTML/Form.php");
define ('CLASS_FREQUENTA', "$root/classes/Tables/Frequenta.php");
define ('CLASS_FULL_TAG', "$root/classes/HTML/FullTag.php");
define ('CLASS_H2', "$root/classes/HTML/H2.php");
define ('CLASS_IMG', "$root/classes/HTML/Img.php");
define ('CLASS_INDIRIZZO', "$root/classes/Tables/Indirizzo.php");
define ('CLASS_INPUT', "$root/classes/HTML/Input.php");
define ('CLASS_INSEGNA', "$root/classes/Tables/Insegna.php");
define ('CLASS_INTERVENTO', "$root/classes/Tables/Intervento.php");
define ('CLASS_LABEL', "$root/classes/HTML/Label.php");
define ('CLASS_LAVORA_IN', "$root/classes/Tables/LavoraIn.php");
define ('CLASS_LI', "$root/classes/HTML/Li.php");
define ('CLASS_MATERIA', "$root/classes/Tables/Materia.php");
define ('CLASS_OPTION', "$root/classes/HTML/Option.php");
define ('CLASS_OSPEDALE', "$root/classes/Tables/Ospedale.php");
define ('CLASS_P', "$root/classes/HTML/P.php");
define ('CLASS_PERMESSO', "$root/classes/Tables/Permesso.php");
define ('CLASS_POSSIEDE', "$root/classes/Tables/Possiede.php");
define ('CLASS_RECORD', "$root/classes/Tables/Record.php");
define ('CLASS_REPARTO', "$root/classes/Tables/Reparto.php");
define ('CLASS_RICOVERO', "$root/classes/Tables/Ricovero.php");
define ('CLASS_SCRIPT', "$root/classes/HTML/Script.php");
define ('CLASS_SCUOLA', "$root/classes/Tables/Scuola.php");
define ('CLASS_SELECT', "$root/classes/HTML/Select.php");
define ('CLASS_SPAN', "$root/classes/HTML/Span.php");
define ('CLASS_STUDENTE', "$root/classes/Tables/Studente.php");
define ('CLASS_TAG', "$root/classes/HTML/Tag.php");
define ('CLASS_TABLE', "$root/classes/HTML/Table.php");
define ('CLASS_TEXT_AREA', "$root/classes/HTML/TextArea.php");
define ('CLASS_TIPO_INTERVENTO', "$root/classes/Tables/TipoIntervento.php");
define ('CLASS_TIPO_RICOVERO', "$root/classes/Tables/TipoRicovero.php");
define ('CLASS_UL', "$root/classes/HTML/Ul.php");
define ('CLASS_USER', "$root/classes/User.php");

define ('CTRL_ACCOUNT', "$root/controllers/account.php");
define ('CTRL_DATABASE', "$root/controllers/database.php");
define ('CTRL_MAIN', "$root/controllers/main.php");
define ('CTRL_REQUEST', "$root/controllers/request.php");

define ('DIR_P_CHART', "$root/includes/pChart2.1.3");

define ('GRAPH_PIE', "$root/includes/pChart2.1.3/graphs/pie.php");

define ('INC_DEFINES', "$root/includes/defines.php");
define ('INC_FUNCTIONS', "$root/includes/functions.php");
define ('INC_MESSAGES', "$root/includes/messages.php");
define ('INC_HTML', "$root/classes/HTML/html.php");

define ('INDEX', "$root/index.php");

define ('MDL_ACCOUNT', "$root/models/account.php");
define ('MDL_ACTIONS', "$root/models/actions.php");
define ('MDL_DATABASE', "$root/models/database.php");
define ('MDL_REQ_FORM', "$root/models/requests/pages/form.php");
define ('MDL_STATS_FORM', "$root/models/stats/form.php");
define ('MDL_GENERATE_PERMISSIONS', "$root/models/generate_permissions.php");
define ('MDL_REQ_DELETE', "$root/models/requests/delete.php");
define ('MDL_REQ_EDIT', "$root/models/requests/edit.php");
define ('MDL_REQ_INSERT', "$root/models/requests/insert.php");
define ('MDL_REQ_PG_LIST', "$root/models/requests/pages/list.php");
define ('MDL_REQ_PG_DELETE', "$root/models/requests/pages/insert.php");
define ('MDL_REQ_PG_EDIT', "$root/models/requests/pages/edit.php");
define ('MDL_REQ_PG_INSERT', "$root/models/requests/pages/insert.php");
define ('MDL_REQ_PG_VIEW', "$root/models/requests/pages/view.php");
define ('MDL_TABLES', "$root/models/tables.php");
define ('MDL_STATS', "$root/models/stats/stats.php");

define ('SCRIPT_LESS', "$root/scripts/less-1.3.0.min.js");

define ('VW_INSERT', "$root/views/insert.php");
define ('VW_LIST', "$root/views/list.php");
define ('VW_LOGIN', "$root/views/login.php");
define ('VW_MENU', "$root/views/menu.php");
define ('VW_NOTIFY', "$root/views/notify.php");
define ('VW_STATS', "$root/views/stats.php");
define ('VW_TABLE', "$root/views/table.php");
define ('VW_TABLES', "$root/views/tables.php");

$address = 'http://127.0.0.1';
$http_root = "$address/registro_elettronico";
//$http_root = 'http://192.168.5.6/registro_elettronico';


define ('HTTP_ROOT', $http_root);

define ('HTTP_CSS_INSERT', "$http_root/styles/insert.css");
define ('HTTP_CSS_LIST', "$http_root/styles/list.css");
define ('HTTP_CSS_LOADER', "$http_root/styles/loader.css");
define ('HTTP_CSS_LOGIN', "$http_root/styles/login.css");
define ('HTTP_CSS_MENU', "$http_root/styles/menu.css");
define ('HTTP_CSS_NOTIFY', "$http_root/styles/notify.css");
define ('HTTP_CSS_STATS', "$http_root/styles/stats.css");
define ('HTTP_CSS_STYLE', "$http_root/styles/style.css");
define ('HTTP_CSS_TABLE', "$http_root/styles/table.css");
define ('HTTP_CSS_TABLES', "$http_root/styles/tables.css");

define ('HTTP_CTRL_ACCOUNT', "$http_root/controllers/account.php");
define ('HTTP_CTRL_DATABASE', "$http_root/controllers/database.php");
define ('HTTP_CTRL_MAIN', "$http_root/controllers/main.php");
define ('HTTP_CTRL_REQUEST', "$http_root/controllers/request.php");
define ('HTTP_CTRL_STAT', "$http_root/controllers/stat.php");

define ('HTTP_DIR_IMG', "$http_root/includes/pChart2.1.3/graphs");
define ('HTTP_DIR_PHP_CALENDAR', "$http_root/controllers/php_calendar");

define ('HTTP_IMG_DELETE', "$http_root/images/delete.png");
define ('HTTP_IMG_EDIT', "$http_root/images/edit.png");
define ('HTTP_IMG_LIST_STYLE', "$http_root/images/list-style-stalls.jpg");
define ('HTTP_IMG_VIEW', "$http_root/images/view.png");

define ('HTTP_SCRIPT_LESS', "$http_root/scripts/less-1.3.0.min.js");
define ('HTTP_SCRIPT_SLEEP', "$http_root/scripts/sleep.js");
define ('HTTP_SCRIPT_VALIDATE', "$http_root/scripts/validate.js");
?>
